package com.example.tms.bean;

import java.math.BigDecimal;

public class CostInfo {

    private String cph;
    private String jsyxm;
    private String jsysj;

    private String xlmc;

    private String gls;
    private String llcyje;
    private String sjcyje;

    private String glf;
    private String zcjy;
    private String xjjy;
    private String buzhu;
    private String maidan;
    private String wxfycn;
    private String wxfycw;
    private String wzfk;
    private String tcf;
    private String zsf;
    private String zxf;
    private String chuanpiao;
    private String sgcl;
    private String peijian;
    private String zcqt;

    private String srcy;
    private String huihuo;
    private String hhbh;
    private String sryk;
    private String sryf;
    private String srqt;

    private String lirun;



    public CostInfo(){}

    public CostInfo(String[] keys, String[] values){
        this.cph = keys[0];
        this.jsyxm = keys[1];
        this.jsysj = keys[2];
        this.gls = values[0];
        this.llcyje = values[1];
        this.sjcyje = values[2];
        this.glf = values[3];
        this.zcjy = values[4];
        this.xjjy = values[5];
        this.buzhu = values[6];
        this.maidan = values[7];
        this.wxfycn = values[8];
        this.wxfycw = values[9];
        this.wzfk = values[10];
        this.tcf = values[11];
        this.zsf = values[12];
        this.zxf = values[13];
        this.chuanpiao = values[14];
        this.sgcl = values[15];
        this.peijian = values[16];
        this.zcqt = values[17];
        this.srcy = values[18];
        this.huihuo = values[19];
        this.hhbh = values[20];
        this.sryk = values[21];
        this.sryf = values[22];
        this.srqt = values[23];
        this.lirun = Li(values);
    }

    public CostInfo(String keys, String[] values){
        this.xlmc = keys;
        this.llcyje = values[1];
        this.sjcyje = values[2];
        this.glf = values[3];
        this.zcjy = values[4];
        this.xjjy = values[5];
        this.buzhu = values[6];
        this.maidan = values[7];
        this.wxfycn = values[8];
        this.wxfycw = values[9];
        this.wzfk = values[10];
        this.tcf = values[11];
        this.zsf = values[12];
        this.zxf = values[13];
        this.chuanpiao = values[14];
        this.sgcl = values[15];
        this.peijian = values[16];
        this.zcqt = values[17];
        this.srcy = values[18];
        this.huihuo = values[19];
        this.hhbh = values[20];
        this.sryk = values[21];
        this.sryf = values[22];
        this.srqt = values[23];
        this.lirun = Li(values);
    }


    private static String Li(String a[]){
        BigDecimal a3 = new BigDecimal(a[3]);
        BigDecimal a4 = new BigDecimal(a[4]);
        BigDecimal a5 = new BigDecimal(a[5]);
        BigDecimal a6 = new BigDecimal(a[6]);
        BigDecimal a7 = new BigDecimal(a[7]);
        BigDecimal a8 = new BigDecimal(a[8]);
        BigDecimal a9 = new BigDecimal(a[9]);
        BigDecimal a10 = new BigDecimal(a[10]);
        BigDecimal a11 = new BigDecimal(a[11]);
        BigDecimal a12 = new BigDecimal(a[12]);
        BigDecimal a13 = new BigDecimal(a[13]);
        BigDecimal a14 = new BigDecimal(a[14]);
        BigDecimal a15 = new BigDecimal(a[15]);
        BigDecimal a16 = new BigDecimal(a[16]);
        BigDecimal a17 = new BigDecimal(a[17]);
        BigDecimal a18 = new BigDecimal(a[18]);
        BigDecimal a19 = new BigDecimal(a[19]);
        BigDecimal a20 = new BigDecimal(a[20]);
        BigDecimal a21 = new BigDecimal(a[21]);
        BigDecimal a22 = new BigDecimal(a[22]);
        BigDecimal a23 = new BigDecimal(a[23]);
        return a18.add(a19).add(a20).add(a21).add(a22).add(a23).subtract(a3).subtract(a4).subtract(a5).subtract(a6).subtract(a7).subtract(a8).subtract(a9).subtract(a10)
                .subtract(a11).subtract(a12).subtract(a13).subtract(a14).subtract(a15).subtract(a16).subtract(a17).toString();
    }






    public String getCph() {
        return cph;
    }

    public void setCph(String cph) {
        this.cph = cph;
    }

    public String getJsyxm() {
        return jsyxm;
    }

    public void setJsyxm(String jsyxm) {
        this.jsyxm = jsyxm;
    }

    public String getJsysj() {
        return jsysj;
    }

    public void setJsysj(String jsysj) {
        this.jsysj = jsysj;
    }

    public String getGls() {
        return gls;
    }

    public void setGls(String gls) {
        this.gls = gls;
    }

    public String getLlcyje() {
        return llcyje;
    }

    public void setLlcyje(String llcyje) {
        this.llcyje = llcyje;
    }

    public String getSjcyje() {
        return sjcyje;
    }

    public void setSjcyje(String sjcyje) {
        this.sjcyje = sjcyje;
    }

    public String getGlf() {
        return glf;
    }

    public void setGlf(String glf) {
        this.glf = glf;
    }

    public String getZcjy() {
        return zcjy;
    }

    public void setZcjy(String zcjy) {
        this.zcjy = zcjy;
    }

    public String getXjjy() {
        return xjjy;
    }

    public void setXjjy(String xjjy) {
        this.xjjy = xjjy;
    }

    public String getBuzhu() {
        return buzhu;
    }

    public void setBuzhu(String buzhu) {
        this.buzhu = buzhu;
    }

    public String getMaidan() {
        return maidan;
    }

    public void setMaidan(String maidan) {
        this.maidan = maidan;
    }

    public String getWxfycn() {
        return wxfycn;
    }

    public void setWxfycn(String wxfycn) {
        this.wxfycn = wxfycn;
    }

    public String getWxfycw() {
        return wxfycw;
    }

    public void setWxfycw(String wxfycw) {
        this.wxfycw = wxfycw;
    }

    public String getWzfk() {
        return wzfk;
    }

    public void setWzfk(String wzfk) {
        this.wzfk = wzfk;
    }

    public String getTcf() {
        return tcf;
    }

    public void setTcf(String tcf) {
        this.tcf = tcf;
    }

    public String getZsf() {
        return zsf;
    }

    public void setZsf(String zsf) {
        this.zsf = zsf;
    }

    public String getZxf() {
        return zxf;
    }

    public void setZxf(String zxf) {
        this.zxf = zxf;
    }

    public String getChuanpiao() {
        return chuanpiao;
    }

    public void setChuanpiao(String chuanpiao) {
        this.chuanpiao = chuanpiao;
    }

    public String getSgcl() {
        return sgcl;
    }

    public void setSgcl(String sgcl) {
        this.sgcl = sgcl;
    }

    public String getPeijian() {
        return peijian;
    }

    public void setPeijian(String peijian) {
        this.peijian = peijian;
    }

    public String getZcqt() {
        return zcqt;
    }

    public void setZcqt(String zcqt) {
        this.zcqt = zcqt;
    }

    public String getSrcy() {
        return srcy;
    }

    public void setSrcy(String srcy) {
        this.srcy = srcy;
    }

    public String getHuihuo() {
        return huihuo;
    }

    public void setHuihuo(String huihuo) {
        this.huihuo = huihuo;
    }

    public String getHhbh() {
        return hhbh;
    }

    public void setHhbh(String hhbh) {
        this.hhbh = hhbh;
    }

    public String getSryk() {
        return sryk;
    }

    public void setSryk(String sryk) {
        this.sryk = sryk;
    }

    public String getSryf() {
        return sryf;
    }

    public void setSryf(String sryf) {
        this.sryf = sryf;
    }

    public String getSrqt() {
        return srqt;
    }

    public void setSrqt(String srqt) {
        this.srqt = srqt;
    }

    public String getLirun() {
        return lirun;
    }

    public void setLirun(String lirun) {
        this.lirun = lirun;
    }

    public String getXlmc() {
        return xlmc;
    }

    public void setXlmc(String xlmc) {
        this.xlmc = xlmc;
    }
}
